import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import BarGraph from "@/views/dataView/BarGraph.vue";
import BrokenLine from "@/views/dataView/BrokenLine.vue";
import PieChart from "@/views/dataView/PieChart.vue";
import ScatterDiagram from "@/views/dataView/ScatterDiagram.vue";
import DataMart from "@/views/dataView/DataMart.vue";
import AreaMap from "@/views/dataView/AreaMap.vue";
import LargeScreen from "@/views/dataView/LargeScreen.vue";
import ProgressBar from "@/views/dataView/ProgressBar.vue";
import ScatterDiagram2 from "@/views/dataView/ScatterDiagram2.vue";
import MyLargeScreen from "@/views/components/dataView/MyLargeScreen.vue";
import MyLargeScreenIndex from "@/views/components/dataView/MyLargeScreenIndex.vue";
import MyPQueue from "@/views/components/queue/MyPQueue.vue";

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        name: 'home',
        component: HomeView
    },
    {
        path: '/dataView/barGraph',
        name: 'BarGraph',
        title: '柱状图',
        component: BarGraph
    },
    {
        path: '/dataView/brokenLine',
        name: 'BrokenLine',
        title: '折线图',
        component: BrokenLine
    },
    {
        path: '/dataView/pieChart',
        name: 'PieChart',
        title: '扇形图',
        component: PieChart
    },
    {
        path: '/dataView/scatterDiagram',
        name: 'ScatterDiagram',
        title: '散点图',
        component: ScatterDiagram
    },
    {
        path: '/dataView/scatterDiagram2',
        name: 'ScatterDiagram',
        title: '散点图+d3',
        component: ScatterDiagram2
    },
    {
        path: '/dataView/dataMart',
        name: 'DataMart',
        title: '数据集',
        component: DataMart
    },
    {
        path: '/dataView/areaMap',
        name: 'AreaMap',
        title: '地图',
        component: AreaMap
    },
    {
        path: '/dataView/progressBar',
        name: 'ProgressBar',
        title: '进度条',
        component: ProgressBar
    },
    {
        path: '/dataView/largeScreen',
        name: 'LargeScreen',
        title: '大屏',
        component: LargeScreen
    },

    {
        path: '/dataView/myLargeScreen',
        name: 'MYLargeScreen',
        title: '大屏-松江测试',
        component: MyLargeScreenIndex
    },

    {
        path: '/queue/myPQueue',
        name: 'MyPQueue',
        title: 'p-queue队列',
        component: MyPQueue
    },
]

const router = new VueRouter({
    routes
})

export default router
